package ro.ubbcluj.cs.validation.framework.core;

import java.util.HashMap;
import java.util.Map;

public class ValidationRule {

	private ValidationRuleType type;
	private Map<ParameterName, String> parameters;
	
	public ValidationRule() {
		this.type = ValidationRuleType.text;
		this.parameters = new HashMap<ParameterName, String>();
	}
	
	public ValidationRule(ValidationRuleType type, Map<ParameterName, String> parameters){
		this.type = type;
		this.parameters = parameters;
	}

	public final ValidationRuleType getType() {
		return type;
	}

	public final void setType(ValidationRuleType type) {
		this.type = type;
	}

	public final Map<ParameterName, String> getParameters() {
		return parameters;
	}

	public final void setParameters(Map<ParameterName, String> parameters) {
		this.parameters = parameters;
	}
}
